package plus.easydo.server.user.mp.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @author laoyu
 * @version 1.0
 * @date 2021/7/1
 */
@Data
@ToString
@SuperBuilder
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class LoginDto implements Serializable {

    @ApiModelProperty(value = "客户端id", required = true)
    @NotEmpty(message = "客户端id必传")
    private String clientId;

    @ApiModelProperty(value = "密钥", required = true)
    @NotEmpty(message = "密钥必传")
    private String secret;

    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty(message = "用户名必传")
    private String userName;

    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty(message = "密码必传")
    private String password;

}
